import request from '@/utils/request'

// 查询聊天房间列表
export function listCallRoom(query) {
  return request({
    url: '/system/callRoom/list',
    method: 'get',
    params: query
  })
}

// 查询聊天房间详细
export function getCallRoom(id) {
  return request({
    url: '/system/callRoom/' + id,
    method: 'get'
  })
}

// 新增聊天房间
export function addCallRoom(data) {
  return request({
    url: '/system/callRoom',
    method: 'post',
    data: data
  })
}

// 修改聊天房间
export function updateCallRoom(data) {
  return request({
    url: '/system/callRoom',
    method: 'put',
    data: data
  })
}

// 删除聊天房间
export function delCallRoom(id) {
  return request({
    url: '/system/callRoom/' + id,
    method: 'delete'
  })
}
